import requests

url = "https://testpassport.rabbitpre.com/api/sso/login"
params = {"account":"18812345678","password":"123456","fromType":"pc"}
session = requests.session()
response = session.post(url, json=params)
if response.json().get("errorCode") == "SUCCESS":
    print("登录成功!")
else:
    print("登录失败:", response.text)